<template>
  <div>
    <!-- <el-upload
      ref="avataruploader"
      class="avatar-uploader"
      :action="configs.action"
      :name="configs.name"
      :auto-upload="configs.autoupload"
      :show-file-list="false"
      :on-success="handleAvatarSuccess"
      :before-upload="beforeAvatarUpload"
    >
      <img v-if="imageUrl" :src="imageUrl" class="avatar" />
      <i v-else class="el-icon-plus avatar-uploader-icon"></i>
    </el-upload> -->
    <el-upload
      :action="configs.action"
      :name="configs.name"
      :auto-upload="configs.autoupload"
      :multiple="configs.multiple"
      :limit="configs.limit"
      :disabled="configs.disabled"
      list-type="picture-card"
      :file-list="filelist"
      :on-preview="handlePictureCardPreview"
      :on-remove="handleRemove"
      :on-success="handleAvatarSuccess"
    >
      <i class="el-icon-plus"></i>
    </el-upload>
    <el-dialog :visible.sync="dialogVisible"><img width="100%" :src="dialogImageUrl" alt="" /></el-dialog>
    <el-row style="text-align: center;margin-top: 0.9375rem;"><el-button type="primary" @click="uploadSubmit">保存</el-button></el-row>
  </div>
</template>
<script src="./index.js"></script>
<style lang="scss" src="./index.scss"></style>
